package com.gadgets.framework;

import com.gadgets.GadgetsFrameworkStart;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author UncleXiu
 * @version V1.0.0
 * @data 2020-09-14
 *
 */
@SpringBootApplication
@PropertySource(value = {
        "classpath:/config/spring-runningEnv.spring.properties",
        "classpath:/config/spring-application-${gadgets.running.type}.spring.properties"
})
@EnableCaching
@EnableTransactionManagement(proxyTargetClass = true)
public class GadgetsFrameworkBootStart {

    public static void main(String[] args) {
        SpringApplication.run(new Class[]{GadgetsFrameworkStart.class},args);
    }

}
